<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<style>
.pricetdClass {
	text-align: center;
	background-color: #ACCFF8;
	border-bottom: solid #EDEDED 1px;
	border-right: solid #EDEDED 1px;
}

.priceTd {
	text-align: center;
	height: 20px;
	line-height: 20px;
	width: 80px;
	border-bottom: solid #999999 1px;
	border-right: solid #999999 1px;
}

.priceTd2 {
	text-align: center;
	height: 20px;
	line-height: 20px;
	width: 150px;
	border-bottom: solid #999999 1px;
	border-right: solid #999999 1px;
}
</style>
<script type="text/javascript"
	src="<%=basePath%>backgroundManager/js/GeneratePrice.js">
</script>
<div class="pageContent">
	<form method="post" action="<%=basePath%>generatePrice_addGeneratePrice.action" class="pageForm required-validate"
		onsubmit="return validateCallback(this, navTabAjaxDone)">
		<!-- 第一步 -->
		<div id="pageFormContent1_gen">
			<div class="pageFormContent" layoutH="58">
				<p>
					<label>
						目的报价渠道：
					</label>
					<input type="hidden" name="price.PPriceWind" value="true" />
					<input id="channel_gen" type="text" size="20" readonly />
					<input id="channelNum_gen" name="price.PChannelNumber"
						type="hidden" />
					<!-- 渠道编码 -->
					<input id="channelBtn_gen" type="button" value="..." />
				</p>
				<p>
					<label>
						起始分区：
					</label>
					<select id="sfenqu_gen" name="price.PPartitionNumber">
						<option value="" selected>
							请选择
						</option>
					</select>
				</p>
				<p>
					<label>
						报价类别(客户类别)：
					</label>
					<select id="clientClass_gen" name="price.classNumber"
						class="combox">
						<option value="" selected>
							请选择
						</option>
						<c:forEach items="${sessionScope.clientClasses}" var="clientClass">
							<c:if test="${clientClass.classNumber ne '9999'}">
								<option value="${clientClass.classNumber}">
									${clientClass.className}
								</option>
							</c:if>
						</c:forEach>
					</select>
				</p>
				<p>
					<label>
						源渠道类别：
					</label>
					<input id="channelType_gen" type="text" size="20" readonly onchange="javascript:alert('A');" />
					<input id="channelTypeNum_gen" type="hidden" />
					<input id="channelTypeBtn_gen" type="button" value="..." />
				</p>
				<p>
					<label>
						是否包含燃油：
					</label>
					<input type="radio" name="price.PPriceFuel" value="false"
						checked="checked" />
					不含
					<input type="radio" name="price.PPriceFuel" value="true" />
					包含
				</p>
				<p>
					<label>
						是否包含大货：
					</label>
					<input type="radio" name="isBig" value="false" checked="checked" />
					不含
					<input type="radio" name="isBig" value="true" />
					包含
				</p>
				<p>
					<label>
						源渠道：
					</label>
					<input id="schannel_gen" type="text" size="20" readonly />
					<input id="schannelNum_gen" type="hidden" />
					<input id="schannelBtn_gen" type="button" value="..." />
				</p>
				<p>
					<label>
						生效日期：
					</label>
					<input type="text" id="priceStartDate_gen"
						name="price.PPriceStartDate" class="date" format="yyyy年MM月dd日"
						yearstart="-5" yearend="5" readonly />
				</p>
				<p>
					<label>
						说明：
					</label>
					<textarea cols="30" rows="5" name="price.PPriceNote"></textarea>
				</p>
				<p>
					<label>
						结束日期：
					</label>
					<input type="text" id="priceEndDate_gen" name="price.PPriceEndDate"
						class="date" format="yyyy年MM月dd日" yearstart="-5" yearend="5"
						readonly />
				</p>
			</div>
			<div class="formBar">
				<ul>
					<li>
						<div class="buttonActive">
							<div class="buttonContent">
								<button id="theNextBtn_gen" type="button">
									下一步
								</button>
							</div>
						</div>
					</li>
				</ul>
			</div>
		</div>
		<!-- 第一步结束 -->
		<!-- 第二步 -->
		<div id="pageFormContent2_gen">
			<div class="pageHeader">
				<div class="searchBar">
					<div>
					<div id="note_gen" ></div>
					</div>
					<div class="subBar">
						<ul>
							<li>
								<div>
									其他费用(<font color="red">x</font>表示重量,<font color="red">y</font>表示票数)：
									<input name="orderFare" type="text" size="5" value="0" />
								</div>
							</li>
							<li>
								<div class="buttonActive">
									<div class="buttonContent">
										<button id="theBackBtn_gen" type="button">
											上一步
										</button>
									</div>
								</div>
							</li>
							<li>
								<div class="buttonActive">
									<div class="buttonContent">
										<button id="saveBtn_gen" type="submit">
											保存
										</button>
									</div>
								</div>
							</li>
						</ul>
					</div>
				</div>
			</div>
			<div class="pageContent">
				<table layoutH="50" cellpadding="0" cellspacing="0"
					style="border-left: 1px #999999 solid; border-top: 1px #999999 solid;">
					<tbody id="priceTab1_gen">

					</tbody>
				</table>
			</div>
		</div>
		<!-- 第二步结束 -->
	</form>
</div>